<h2>USERS</h2>
<ul class="items">
    <li *ngFor="let user of users">
        <span class="badge">{{user.id}}</span>
        <span (click)="onSelect(user)">{{user.name}}</span>
        <button (click)="delUser(user.id)">delete</button>
    </li>
</ul>
New User name:
<input #newUserName/>
<button (click)="addUser(newUserName.value);newUserName.value=''">
    Add User
</button>
<div class="error" *ngIf="errorMessage">{{errorMessage}}</div>